<template>
  <div class="travel">
    <div class="travel-item" v-for="item of imgs" :key="item.id">
      <img class="images" :src="item.imgUrl" />
    </div>
    <div class="holiday" v-for="item of holidayimgs" :key="item.id">
      <img
        class="holiday-imgs"
        :src="item.imgUrl"
      />
      <div class="title">{{item.project}}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "VacationTravel",
  props: {
    imgs: Array,
    holidayimgs: Array
  },
  data() {
    return {};
  }
};
</script>
<style lang="stylus" scoped>
.travel {
  position: absolute;
  top: 12.8rem;
  height: 5rem;
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.travel-item {
  height: 1rem;
}

.images {
  width: 1.6rem;
  height: 1rem;
  margin-top: 0.2rem;
  margin-left: 0.1srem;
}

.holiday {
  width: 1.2rem;
  height: 1.04rem;
  margin-top -1.5rem
}


.holiday-imgs {
  width: 0.6rem;
  height: 0.6rem;
  margin-left .3rem
}

.title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
  font-size: 12px;
  line-height: 17px;
  color: #212121;
}
</style>